home *** CD-ROM | disk | FTP | other *** search
/ ADA Programming Guide / ADA Programming Guide.iso / ada_gnu / include / errno.h < prev    next >
C/C++ Source or Header  |  1996-01-30  |  2KB  |  48 lines

  1. /*
  2. ** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954
  3. **
  4. ** This file is distributed under the terms listed in the document
  5. ** "copying.dj", available from DJ Delorie at the address above.
  6. ** A copy of "copying.dj" should accompany this file; if not, a copy
  7. ** should be available from where this file was obtained.  This file
  8. ** may not be distributed without a verbatim copy of "copying.dj".
  9. **
  10. ** This file is distributed WITHOUT ANY WARRANTY; without even the implied
  11. ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12. */
  13.  
  14. #ifndef errno_h
  15. #define errno_h 1
  16.  
  17. #define ENOENT   2              /* No such file or directory    */
  18. #define ENOTDIR  3              /* No path                      */
  19. #define EMFILE   4              /* Too many open files          */
  20. #define EACCES   5              /* Permission denied            */
  21. #define EBADF    6              /* Bad file number              */
  22. #define EARENA   7              /* Arena trashed                */
  23. #define ENOMEM   8              /* Not enough core              */
  24. #define ESEGV    9              /* invalid memory address       */
  25. #define EBADENV 10              /* invalid environment          */
  26. #define ENODEV  15              /* No such device               */
  27. #define ENMFILE 18              /* No more files                */
  28. #define EINVAL  19              /* Invalid argument             */
  29. #define E2BIG   EBADENV         /* Arg list too long            */
  30. #define ENOEXEC 21              /* Exec format error            */
  31. #define EXDEV   17              /* Cross-device link            */
  32. #define EPIPE    32        /* POHC                         */
  33. #define EDOM    33              /* Math argument                */
  34. #define ERANGE  34              /* Result too large             */
  35. #define EWOULDBLOCK 35        /* POHC                         */
  36. #define EEXIST  36              /* File already exists          */
  37. #define EINTR    100        /* Interrupted system call    */
  38. #define EIO    101        /* I/O or bounds error        */
  39. #define ENOSPC    102        /* No space left on drive    */
  40. #define EAGAIN    103        /* No more processes        */
  41. #define ECHILD  200        /* child exited (porting only)  */
  42. #define EFAULT    201        /* bad address */
  43. #define ENXIO    ENODEV
  44. #define EPERM    EACCES
  45.  
  46. #include <djgppstd.h>
  47. #endif
  48.